/*
 * Copyright (C), 2015-2018
 * FileName: GeUser
 * Author:   zhao
 * Date:     2019-01-08 16:29:57
 * Description: 存放我们的玩家信息业务处理层实现类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package

        com.lizhaoblog.game.sbs.tmptouch.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.lizhaoblog.game.sbs.tmptouch.dao.mysql.GeUserDao;
import com.lizhaoblog.game.sbs.tmptouch.entity.GeUser;
import com.lizhaoblog.game.sbs.tmptouch.service.GeUserService;

/**
 * 〈一句话功能简述〉<br>
 * 〈存放我们的玩家信息业务处理层实现类〉
 *
 * @author zhao
 * @date 2019-01-08 16:29:57
 * @since 1.0.1
 */
@Service
public class GeUserServiceImpl implements GeUserService {
    @Autowired
    private GeUserDao geUserDao;

    @Override
    public GeUser findOne(Integer uid) {
        return geUserDao.findOne(uid);
    }

    @Override
    public List<GeUser> listAll() {
        return geUserDao.listAll();
    }

    @Override
    public List<GeUser> listByParam(Map<String, Object> map) {
        return geUserDao.listByParam(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return geUserDao.count().intValue();
    }

    @Override
    public Long count() {
        return geUserDao.count();
    }

    @Override
    public void save(GeUser geUser) {
        geUserDao.insert(geUser);
    }

    @Override
    public void update(GeUser geUser) {
        geUserDao.update(geUser);
    }

    @Override
    public void delete(Integer uid) {
        geUserDao.deleteById(uid);
    }

    @Override
    public void deleteByIdArray(Integer[] uids) {
        geUserDao.deleteByIdArray(uids);
    }

    @Override
    public List<GeUser> apiListByParam(Map<String, Object> map) {
        return geUserDao.apiListByParam(map);
    }
}
